package com.zking.ssm.sys.service.impl;

import com.zking.ssm.sys.mapper.HotelFacilityMapper;
import com.zking.ssm.sys.mapper.HotelRoomNumMapper;
import com.zking.ssm.sys.model.HotelFacility;
import com.zking.ssm.sys.model.HotelRoomNum;
import com.zking.ssm.sys.service.IHotelRoomNumService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class HotelRoomNumServiceImpl implements IHotelRoomNumService {
    @Autowired
    private HotelRoomNumMapper hotelRoomNumMapper;
    public HotelRoomNumServiceImpl(){
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return hotelRoomNumMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HotelRoomNum record) {
        return hotelRoomNumMapper.insert(record);
    }

    @Override
    public int insertSelective(HotelRoomNum record) {
        return hotelRoomNumMapper.insertSelective(record);
    }

    @Override
    public HotelRoomNum selectByPrimaryKey(Long id) {
        return hotelRoomNumMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HotelRoomNum record) {
        return hotelRoomNumMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HotelRoomNum record) {
        return hotelRoomNumMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HotelRoomNum> list(HotelRoomNum record, PageBean pageBean) {
        List<HotelRoomNum> hotelRoomNumList = hotelRoomNumMapper.list(record);
        return hotelRoomNumMapper.list(record);
    }
}
